package com.aba.hos.dao.impl;




import com.aba.hos.admin.Admin;
import com.aba.hos.dao.PatDao;
import com.aba.hos.dao.PatWordDao;
import com.aba.hos.doc.entity.PatWord;
import com.aba.hos.doc.entity.PatWord;
import com.aba.hos.utils.BaseDao;

import java.sql.SQLException;
import java.util.List;

public class PatWordDaoImpl extends BaseDao<PatWord> implements PatWordDao {


    @Override
    public List<PatWord> queryPatWordByName(String name) throws SQLException {
        return this.getBeanList("select id, docId, patId, title, executionTime, releaseTime, place from hos.docpatword where patId = ? " , name);
    }

    @Override
    public List<PatWord> queryPatWordByAll() throws SQLException {
        return this.getBeanList("select id, docId, patId, title, executionTime, releaseTime, place from hos.docpatword ");
    }

}
